import { CrossDefenceCopyMenuBase } from "./CrossDefenceCopyMenuBase";
import { SpecialSkillPanel } from "../../bossField/SpecialSkillPanel";
import { DisplayUtil } from "../../../../common/DisplayUtil";
type int = number;
//class CrossDefenceCopySkillMenu
    
    export  class CrossDefenceCopySkillMenu extends CrossDefenceCopyMenuBase
    {
        constructor(arg1: SpecialSkillPanel, arg2: int, arg3: Boolean=false, arg4: string="", arg5: string="")
        {
            this._skillPanel = arg1;
            this._originalMode = this._skillPanel.showMode;
            var loc1=[];
            var loc2=0;
            while (loc2 < arg2) 
            {
                loc1.push(0);
                ++loc2;
            }
            super(loc1, "CrossTowerSkillTitle.png", "CrossTowerSkillIcon.png", null, arg3, arg4, arg5);
            arg1.layer = null;
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            this._skillPanel.x = -18;
            this._skillPanel.y = 0;
            _container.addChild(this._skillPanel);
            return;
        }

        public /* override */ clean(): void
        {
            super.clean();
            this._skillPanel.showMode = this._originalMode;
            DisplayUtil.removeMe(this._skillPanel);
            return;
        }

        /* internal */ /* var */_originalMode: int;

        /* internal */ /* var */_skillPanel: SpecialSkillPanel;
    }
